/**
 * 方法的重载
 * @author smallcatX0 (smallcatX0)
 * @date    2018-01-05 16:27:48
 * @version $Id$
 */

public class functions {
    public static void main(String[] args) {
		System.out.println("add(3,8) = " + add(3,8));
		System.out.println("add(3,8,7) = " +add(3,8,7));
		System.out.println("add(3.1,8.5) = " + add(3.1,8.5));
	}
	public static int add(int a,int b){
		return a+b;
	}
	public static double add(double a,double b){
		return a+b;
	}
	public static int add(int a,int b,int c){
		return a+b+c;
	}
/*
-----------OUTPUT-----------  
add(3,8) = 11
add(3,8,7) = 18
add(3.1,8.5) = 11.6
 */
}